package com.yunlong.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author guorui
 * @date 2020-07-31 10:35
 */
@Data
public class UserEmailForm {
    @NotBlank(message = "邮箱号不能为空")
    @Pattern(message = "邮箱格式错误，请重新输入", regexp = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")
    private String userEmail;
}
